home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / find-37.zoo / find-3.7 / makefile < prev    next >
Encoding:
Makefile  |  1993-02-26  |  6.0 KB  |  162 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for GNU find, xargs, and locate.
  3. # Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24. VPATH = .
  25.  
  26. CC = /gnu/bin/gcc.ttp
  27. AR = ar
  28. # Set RANLIB = echo if your system doesn't have or need ranlib.
  29. RANLIB = @:
  30. # Use cp if you don't have install.
  31. INSTALL = /bin/install -c
  32. INSTALL_PROGRAM = $(INSTALL)
  33. INSTALL_DATA = $(INSTALL) -m 644
  34.  
  35. # Things you might add to DEFS:
  36. # -DCACHE_IDS        If you want find -nouser and -nogroup to make
  37. #            tables of used UIDs and GIDs at startup
  38. #            instead of using getpwuid or getgrgid when
  39. #            needed.  Speeds up -nouser and -nogroup unless
  40. #            you are running NIS or Hesiod, which make
  41. #            password and group calls very expensive. 
  42. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  43. # -DHAVE_UNISTD_H    If you have unistd.h.
  44. # -DUSG            If you have System V/ANSI C string headers and
  45. #            functions, and ndir.h. 
  46. # -DDIRENT        If you have dirent.h.
  47. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  48. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  49. # -DMAJOR_IN_MKDEV    If major, minor, makedev defined in sys/mkdev.h.
  50. # -DMAJOR_IN_SYSMACROS    If major, minor, makedev defined in sys/sysmacros.h.
  51. # -DHAVE_LIMITS_H    If you have limits.h; otherwise uses sys/param.h.
  52. # -DHAVE_ST_BLOCKS    If your `struct stat' has st_blocks and st_blksize.
  53. # -DHAVE_ST_RDEV    If your `struct stat' has st_rdev.
  54. # -DHAVE_STRERROR    If you have strerror function.
  55. # -DHAVE_VPRINTF    If you have vprintf function.
  56. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  57. # -DHAVE_TM_ZONE    If you have tm_zone in struct tm; otherwise
  58. #            uses tm_isdst and tzname.
  59. # -DHAVE_TZNAME        If you have tm_zone and tzname but not tm_zone;
  60. #            otherwise uses tm_isdst and timezone.
  61. # Define zero or one of the following:
  62. # If no FSTYPE_* is defined, -fstype treats every filesystem as type "unknown".
  63. # -DFSTYPE_MNTENT    Use 4.3BSD getmntent to get filesystem type.
  64. # -DFSTYPE_GETMNT    Use Ultrix getmnt to get filesystem type.
  65. # -DFSTYPE_STATFS    Use 4.4BSD statfs to get filesystem type.
  66. # -DFSTYPE_USG_STATFS    Use SVR3.2 statfs to get filesystem type.
  67. # -DFSTYPE_AIX_STATFS    Use AIX3 statfs to get filesystem type.
  68. # -DFSTYPE_STATVFS    Use SVR4 statvfs to get filesystem type.
  69.  
  70. DEFS =  -D_POSIX_SOURCE=1 -D_POSIX_1_SOURCE=2 -DHAVE_LIMITS_H=1 \
  71.         -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 \
  72.         -DHAVE_VPRINTF=1 -DHAVE_ST_BLOCKS=1 -DHAVE_ST_RDEV=1 \
  73.         -DHAVE_TZNAME=1 -DCACHE_IDS
  74.  
  75. CFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce -mbaserel -mpcrel
  76. LDFLAGS = -mbaserel
  77. LIBS =
  78.  
  79. prefix = 
  80. exec_prefix = $(prefix)
  81.  
  82. # Prefix for each installed program, normally empty or `g'.
  83. binprefix = 
  84. # Prefix for each installed man page, normally empty or `g'.
  85. manprefix = 
  86.  
  87. # Where to install `find' and `locate'.
  88. bindir = $(exec_prefix)/bin
  89.  
  90. # Where to install programs to create the `locate' database.
  91. libdir = /usr/lib/locate
  92.  
  93. # Where to install the `locate' database.
  94. datadir = /usr/lib/locate
  95.  
  96. # Name of the `locate' database file.
  97. LOCATE_DB = $(datadir)/find.codes
  98.  
  99. # Where to install manual pages.
  100. mandir = /usr/man/man1
  101. # Extension (not including `.') for the installed manual page filenames.
  102. manext = 1
  103.  
  104. #### End of system configuration section. ####
  105.  
  106. # Arguments to pass to subdirectory makes.
  107. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' datadir='$(datadir)' \
  108. binprefix='$(binprefix)' manprefix='$(manprefix)' \
  109. mandir='$(mandir)' manext='$(manext)' LOCATE_DB='$(LOCATE_DB)' \
  110. INSTALL_PROGRAM='$(INSTALL_PROGRAM)' INSTALL_DATA='$(INSTALL_DATA)' \
  111. AR='$(AR)' RANLIB='$(RANLIB)' DEFS='$(DEFS)' \
  112. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  113.  
  114. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  115. NEWS configure configure.in
  116.  
  117. # Subdirectories to run make in for the primary targets.
  118. SUBDIRS = lib find xargs locate man
  119.  
  120. all:
  121.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  122. .PHONY: all
  123.  
  124. install:
  125.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  126. .PHONY: install
  127.  
  128. TAGS:
  129.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  130. .PHONY: TAGS
  131.  
  132. clean:
  133.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  134. .PHONY: clean
  135.  
  136. mostlyclean:
  137.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  138. .PHONY: mostlyclean
  139.  
  140. distclean:
  141.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  142.     rm -f Makefile config.status
  143. .PHONY: distclean
  144.  
  145. realclean:
  146.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  147.     rm -f Makefile config.status
  148. .PHONY: realclean
  149.  
  150. dist:
  151.     echo find-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q find/version.c` > .fname
  152.     rm -rf `cat .fname`
  153.     mkdir `cat .fname`
  154.     ln $(DISTFILES) `cat .fname`
  155.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  156.     tar chZf `cat .fname`.tar.Z `cat .fname`
  157.     rm -rf `cat .fname` .fname
  158. .PHONY: dist
  159.  
  160. # Prevent GNU make v3 from overflowing arg limit on SysV.
  161. .NOEXPORT:
  162.